/* https://fonts.google.com/ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&family=Poppins:wght@400;500&display=swap');

/*== Variables css ==*/
:root {
  --head-height: 3.5rem;

  /*== Colors ==*/
  /*=== Color Mode HSL(hue, saturation, lightness) ===*/
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --text-color-light: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);
  --container-color: hsl(0, 0%, 8%);

  /*== Font and Typography ==*/
  /* 1rem = 16px | .5rem = 8px */
  --body-font: "Poppins", sans-serif;
  --second-font: "Montserrat", sans-serif;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  
  /*== Font Weight ==*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*== z-index ==*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*== Responsive typography ==*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    --head-height: 5rem;
  }
}

/*== Base ==*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

body {
  background-color: var(--body-color);
}

button,
input {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*== reusable css classes ==*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section_title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section .button {
  background-color: hsla(0, 0%, 100%, .2);
  padding: 1.25rem 1.5rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.section .button i {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}
.section .button:hover i {
  transform: translateX(.25rem);
} 

.main {
  /*== For animation ScrollReveal ==*/
  overflow: hidden;
}


/*== Header ==*/
.header {
  width: 100%;
  height: var(--head-height);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
}
.header.head-blur::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav {
  height: var(--head-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_menu .nav_list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}
.nav_menu .nav_list .nav_link {
  position: relative;
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
}
.nav_menu .nav_list .nav_link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--title-color);
  
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .3s;
}
.nav_menu .nav_list .nav_link:hover::after {
  width: 70%;
}
.nav_menu .nav_list .nav_link.active_link::after {
  width: 70%;
}

.nav_logo, .nav_close, .nav_toggle {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav_logo {
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}


/*== Home ==*/
.home {
  position: relative;
}

.home .home_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  /* height: 100vh; */
  object-fit: cover;
  object-position: center;
}

.home .home_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  /* height: 110vh; */
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 58%, hsl(0, 0%, 0%) 78%);
  /* background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 69%, hsl(0, 0%, 0%) 78%); */
}

.home .home_container {
  position: relative;
  padding-top: 3rem;
  row-gap: 3rem;
}

.home_caption {
  text-align: center;
}
.home_caption .home_subtitle {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}
.home_caption .home_title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}
.home_caption .home_describe {
  margin-bottom: 2rem;
  color: var(--title-color);
}

.home_cards {
  grid-template-columns: 240px;
  justify-content: center;
}
.home_cards .home_card {
  position: relative;
  overflow: hidden;
}
.home_card:hover .home_card_img {
  transform: scale(1.2);
}
.home_card .home_card_img {
  transition: transform .4s;
}
.home_card .home_card_title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: var(--h3-font-size);
  z-index: 1;
}
.home_card .home_card_shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 125%);
}

/*== About ==*/
.about_container {
  row-gap: 3rem;
}

.about_container .about_caption {
  text-align: center;
}
.about_caption .caption_describe {
  margin-bottom: 2rem;
}

.about_container .about_image {
  position: relative;
  justify-self: center;
  overflow: hidden;
}
.about_image img {
  width: 300px;
  transition: transform .4s;
}
.about_image:hover img {
  transform: scale(1.2);
}
.about_image .about_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 125%);
}

/*== Popular ==*/
.popular_container {
  padding-top: 1.5rem;
  grid-template-columns: 240px;
  justify-content: center;
  row-gap: 2.5rem;
}

.pop_card .card_image {
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}
.pop_card .card_image img {
  transition: transform .4s;
}
.pop_card .card_image:hover img {
  transform: scale(1.2);
}
.pop_card .card_image .img_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 125%);
}

.pop_card .pop_title {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.pop_card .pop_location {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  font-weight: 500;
}
.pop_card .pop_location i {
  font-size: 1rem;
}


/*== Explore ==*/
.explore_container {
  position: relative;
}

.explore_container .explore_image {
  position: absolute;
  overflow: hidden;
}
.explore_image img {
  width: 100%;
  height: 333px;
  object-fit: cover;
  object-position: center;
}
.explore_image .explore_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsl(0, 0%, 0%) 5%,
              hsla(0, 0%, 0%, 0) 40%,
              hsla(0, 0%, 0%, 0) 60%,
              hsl(0, 0%, 0%) 92%);
}

.explore_container .explore_content {
  position: relative;
  padding-top: 16rem;
  text-align: center;
  row-gap: 2.5rem;
}

.explore_content .explore_user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}
.explore_user img {
  width: 30px;
  border-radius: 50%;
}
.explore_user .name {
  font-size: var(--small-font-size);
  color: var(--title-color);
}


/*== Join ==*/
.join_container {
  row-gap: 3rem;
  padding-bottom: 2.5rem;
}

.join_container .join_caption {
  text-align: center;
}
.join_caption .join_describe {
  margin-bottom: 2rem;
}
.join_caption .join_form {
  display: grid;
  row-gap: 1rem;
}
.join_caption .join_form .email {
  padding: 1.25rem 1rem;
  background-color: var(--container-color);
}
.join_caption .join_form .submit_btn {
  cursor: pointer;
}

.join_container .join_image {
  position: relative;
  justify-self: center;
  overflow: hidden;
}
.join_image img {
  width: 300px;
  transition: transform .4s;
}
.join_image:hover img {
  transform: scale(1.2);
}
.join_image .img_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
              hsla(0, 0%, 0%, 0) 50%,
              hsl(0, 0%, 0%) 125%);
}


/*== Footer ==*/
.footer {
  padding-block: 2.5rem;
  background-color: var(--container-color);
}

.foot_content {
  row-gap: 3.5rem;
}
.foot_content .foot_logo {
  display: inline-block;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.foot_content .foot_datas {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem 3.5rem;
}
.foot_content .foot_datas .data_title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}
.foot_content .foot_datas .data_links {
  display: grid;
  row-gap: .75rem;
}
.foot_content .foot_datas .data_links .link {
  color: var(--text-color);
  transition: color .4s;
}
.foot_content .foot_datas .data_links .link:hover {
  color: var(--title-color);
}

.foot_group, .foot_social {
  display: flex;
}
.foot_group {
  margin-top: 5rem;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
}

.foot_group .foot_social {
  column-gap: 1.5rem;
}
.foot_group .foot_social .sacial_link {
  color: var(--text-color);
  font-size: 1.25rem;
  transition: color .4s, transform .4s;
}
.foot_group .foot_social .sacial_link:hover {
  color: var(--title-color);
  transform: translateX(-.25rem);
}

.foot_group .foot_copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  text-align: center;
}


/*== Scroll Bar ==*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(0, 0%, 10%);
}
::-webkit-scrollbar-thumb {
  border-radius: .5rem;
  background-color: hsl(0, 0%, 20%);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}

/*== Scroll UP ==*/
.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsla(0, 0%, 100%, 0.1);
  padding: 6px;
  display: inline-flex;
  color: var(--title-color);
  font-size: 1.25rem;
  backdrop-filter: blur(24px);
  --webkit-backdrop-filter: blur(24px);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}
.scroll-up:hover {
  transform: translateY(-.25rem);
}
.scroll-up.show-scroll-up {
  bottom: 3rem;
}
